package in.muton.edushare.panels.upload;

import in.muton.edushare.EduSharePage;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.model.IModel;

import com.edushare.common.vo.FileDirectories;

public class MultipleFileUploadPanelModalPage extends EduSharePage {

	public MultipleFileUploadPanelModalPage(IModel<FileDirectories> uploadDirModel, final ModalWindow mWin){
		MultipleFileUploadPanel upanel = new MultipleFileUploadPanel("upanel", uploadDirModel);
		add(upanel);
		AjaxLink<Void> closeLink = new AjaxLink<Void>("closeLink"){

			private static final long serialVersionUID = 8878672402720667540L;

			@Override
			public void onClick(AjaxRequestTarget target) {
				mWin.close(target);
			}
			
		};
		add(closeLink);
	}
}